home *** CD-ROM | disk | FTP | other *** search
- Path: lrz-muenchen.de!news
- From: watzka@stat.uni-muenchen.de (Kurt Watzka)
- Newsgroups: comp.lang.c
- Subject: Re: compilers
- Date: 15 Mar 1996 17:04:00 GMT
- Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
- Distribution: world
- Message-ID: <4ic7u0$d1q@sparcserver.lrz-muenchen.de>
- References: <4iburm$aps@airdmhor.gen.nz>
- NNTP-Posting-Host: sun2.lrz-muenchen.de
-
- gumboot@airdmhor.gen.nz (Simon Hosie) writes:
-
- > Does anyone know of a compiler that can take
-
- >for (;;)
- >{
- > Stuff(1);
- > if (Cond)
- > break;
- > Stuff(2);
- >}
-
- > and make
-
- >goto EntryPoint;
- >do
- >{
- > Stuff(2);
- >EntryPoint:
- > Stuff(1);
- >} while (Cond);
-
- Are you talking about a compiler that changes your _sources_ to other
- sources that it would compile to the same code, but that is less
- maintainable and less readable? Who would want to install such a
- compiler? The whole loop could easily be written in a lot of different
- ways, so what would be the use of a compiler that that generatres
- one of the worst possible ways of expressing a certain control flow?
-
- Have a look at CFront. It generates the kind of code yo seem to
- like as output.
-
- Kurt
- --
- | Kurt Watzka Phone : +49-89-2180-6254
- | watzka@stat.uni-muenchen.de
- | ua302aa@sunmail.lrz-muenchen.de
-
-